import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
      {
          path: '/',
         redirect:'/login'
      },
      {
          path: '/login',
          name: 'Login',
          component:resolve => require(['../components/page/Login.vue'], resolve)
      },
      {
          path: '/index',
          name: 'Index',
          component:resolve => require(['../components/page/Index.vue'], resolve)
      },
      {
          path: '/myaccount',
          name: 'MyAccount',
          component:resolve => require(['../components/page/MyAccount.vue'], resolve)
      },
      {
          path: '/code',
          name: 'Code',
          component:resolve => require(['../components/page/Code.vue'], resolve)
      },
      {
      path: '/myaccount/refuse',
      name: 'Refuse',
      component:resolve => require(['../components/page/RefuseList.vue'], resolve)
      }

  ]
})
